<?php
class db_connect{
	function db_connect(){
		global $tb_status;
		
		$db_conn=mysql_connect("117.17.102.203","gnet","gnet") || die("DB 서버 연결에 실패 하였습니다.");


		$tb_status=mysql_select_db("gnet");
		if (!$tb_status){
		   $errNo = mysql_errno ();
		   $errMSG = mysql_error ();
		   print "DB Server Connect errNO<br>";
		   print "Error Code $errNo : $errMSG<br>";
		   }
		   
		  
	}

	function query_chk($qv,$error_msg){
		if (!$qv){
		   $errNo = mysql_errno ();
		   $errMSG = mysql_error ();
		   print "DB Server Connect errNO<br>";
		   print "Error Code $errNo : $errMSG<br>";
		   print "$error_msg";
		   exit;
		}
	}
}
?>